package com.cwh.taskcenter.reward.converter;

import com.cwh.taskcenter.domain.reward.model.UserPointRecord;
import com.cwh.taskcenter.reward.model.UserPointRecordDO;

/**
 * @author cwh
 */
public class UserPointRecordConverter {


    public static UserPointRecordDO toUserPointRecordDO(UserPointRecord userPointRecord) {
        UserPointRecordDO userPointRecordDO = new UserPointRecordDO();
        userPointRecordDO.setId(userPointRecord.getId());
        userPointRecordDO.setUserId(userPointRecord.getUserId());
        userPointRecordDO.setBizId(userPointRecord.getBizId());
        userPointRecordDO.setBizType(userPointRecord.getBizType());
        userPointRecordDO.setTitle(userPointRecord.getTitle());
        userPointRecordDO.setDesc(userPointRecord.getDesc());
        userPointRecordDO.setChangePoint(userPointRecord.getChangePoint());
        userPointRecordDO.setTotalPoint(userPointRecord.getTotalPoint());
        userPointRecordDO.setCreatedTime(userPointRecord.getCreatedTime());
        return userPointRecordDO;
    }
}
